$(function() {
	$('button').click(function () {
		var jlid = $(this).attr("jlid");
		finishWork(jlid);
	});
});

function finishWork(jlid) {

	var data = {
		"id":jlid
	}
	$.doAjaxCall("scheduleController.do?finishWork", data, finishWorkCallBack,true);
}
function finishWorkCallBack(json) {
	if(json.success){
		history.go(0);
		parent.refreshMyWork();
	}else{
		alert("标记为完成失败");
	}
	
}
